package com.east.service.sale;

import com.east.bean.Customer;
import com.east.bean.User;
import com.east.utils.Pagenation;
import com.github.pagehelper.Page;

public interface CustomerService {
	/**
	 * 分页查询
	 * @param pagenation
	 * @param key
	 * @return
	 */
	Page<Customer> findByPage(Pagenation pagenation ,String key,User user);
	
	/**
	 * 详情
	 * @param customer
	 * @return
	 */
	Customer  findByOne(Customer customer);
	/**
	 * 添加
	 * @param customer
	 * @return
	 */
	boolean saveCustomer(Customer customer,User user);
	/**
	 * 修改
	 * @param customer
	 * @return
	 */
	boolean updateCustomer(Customer customer,User user);
	/**
	 * 删除
	 * @param customer
	 * @return
	 */
	boolean delCustomer(Customer customer);
}
